package com.kc.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商家商品
 */
@Data
@Table(name = "kc_business_goods")
public class BizBusinessGoods {
    /*主键id*/
    @Id
    private Integer id;
    /*商家id*/
    private Integer businessId;
    /*商家名称*/
    @Transient
    private String businessName;
    /*商品名称*/
    private String goodsName;
    /*商品图片，单张*/
    private String goodsImage;
    /*价格*/
    private BigDecimal goodsPrice;
    /*简介*/
    private String goodsIntro;
    /*标签,入库字段*/
    @JsonIgnore
    private String goodsLable;

    /*标签数组,出参/入参使用*/
    private String[] goodsLables;
    /*状态：1上架，0下架*/
    private Integer status;
    /*是否推荐:1推荐，0不推荐*/
    private Integer isRecommend;
    /*删除标记:1已删除，0未删除*/
    private Integer isDeleted = 0;
    private Integer stock;
    @JsonIgnore
    private Integer isSetStock;
    /*床型(住宿类型使用)*/
    private String bedType;
    /*窗户类型(住宿类型使用)*/
    private String windowType;
    /*早餐数量(住宿类型使用)*/
    private String breakfastNum;
    /*房间尺寸(住宿类型使用)*/
    private String roomSize;

    @Transient
    private String[] goodsImageList;

}
